home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / cookie / nsICookiePromptService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICookiePromptService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICookiePromptService_h__
  6. #define __gen_nsICookiePromptService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19. class nsICookie; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsICookiePromptService */
  23. #define NS_ICOOKIEPROMPTSERVICE_IID_STR "72f8bb14-2810-4f38-8d0d-290c5401f54e"
  24.  
  25. #define NS_ICOOKIEPROMPTSERVICE_IID \
  26.   {0x72f8bb14, 0x2810, 0x4f38, \
  27.     { 0x8d, 0x0d, 0x29, 0x0c, 0x54, 0x01, 0xf5, 0x4e }}
  28.  
  29. class NS_NO_VTABLE nsICookiePromptService : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOOKIEPROMPTSERVICE_IID)
  33.  
  34.   enum { DENY_COOKIE = 0U };
  35.  
  36.   enum { ACCEPT_COOKIE = 1U };
  37.  
  38.   enum { ACCEPT_SESSION_COOKIE = 2U };
  39.  
  40.   /* long cookieDialog (in nsIDOMWindow parent, in nsICookie cookie, in ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision); */
  41.   NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, PRBool changingCookie, PRBool *rememberDecision, PRInt32 *_retval) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSICOOKIEPROMPTSERVICE \
  47.   NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, PRBool changingCookie, PRBool *rememberDecision, PRInt32 *_retval); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSICOOKIEPROMPTSERVICE(_to) \
  51.   NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, PRBool changingCookie, PRBool *rememberDecision, PRInt32 *_retval) { return _to CookieDialog(parent, cookie, hostname, cookiesFromHost, changingCookie, rememberDecision, _retval); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSICOOKIEPROMPTSERVICE(_to) \
  55.   NS_IMETHOD CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, PRBool changingCookie, PRBool *rememberDecision, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CookieDialog(parent, cookie, hostname, cookiesFromHost, changingCookie, rememberDecision, _retval); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsCookiePromptService : public nsICookiePromptService
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSICOOKIEPROMPTSERVICE
  66.  
  67.   nsCookiePromptService();
  68.  
  69. private:
  70.   ~nsCookiePromptService();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsCookiePromptService, nsICookiePromptService)
  78.  
  79. nsCookiePromptService::nsCookiePromptService()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsCookiePromptService::~nsCookiePromptService()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* long cookieDialog (in nsIDOMWindow parent, in nsICookie cookie, in ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision); */
  90. NS_IMETHODIMP nsCookiePromptService::CookieDialog(nsIDOMWindow *parent, nsICookie *cookie, const nsACString & hostname, PRInt32 cookiesFromHost, PRBool changingCookie, PRBool *rememberDecision, PRInt32 *_retval)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98. #define NS_COOKIEPROMPTSERVICE_CONTRACTID "@mozilla.org/embedcomp/cookieprompt-service;1"
  99.  
  100. #endif /* __gen_nsICookiePromptService_h__ */
  101.